package main

import "fmt"

// 定义结构体

type person struct {
	name, city string
	age        int
}

func main() {
	var p person
	p.name = "沙河娜扎"
	p.city = "北京"
	p.age = 18
	fmt.Printf("p=%#v\n", p)
	fmt.Println(p.name)
	fmt.Println(p.city)
	fmt.Println(p.age)
}
